package com.wx.javacode.poly_;

/**
 * ClassName:Master
 * Package :com.wx.javacode.poly_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/5/18 - 15:20
 */
public class Master {
    private String name;

    public Master(String name) {
        this.name = name;
    }

    public void feed(Animal animal, Food food) {
        System.out.println("主人" + name + " 给" + animal.getName() + " 吃" + food.getName());
    }
}
